{% load main_filters %}

<div class="book">
    <img class="image-middle" src="{{ book.image.url }}" alt="">
    <div class="book-content">
        <div class="title">
            {{ book.title }}
        </div>
        <div class="description">
            {{ book.description|format_book_description|truncatewords:40 }}
            <a href="{% url 'book' slug=book.slug %}" class="read hvr-shadow-radial">
                Перейти к книге
            </a>
        </div>
        <div class="additional-information">
            <div class="author">
                Автор:
                <a href="{% url 'author:author' name_slug=book.author.slug %}" class="link-to-author">{{ book.author }}</a>
            </div>
            <div class="group">
                Группа: {{ book.group }}
            </div>
        </div>
    </div>
</div>